﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StoragePeriod.Model.RawDict;

namespace StoragePeriod.IDAL.RawDict
{
    /// <summary>
    /// 原料 对应元素 操作接口
    /// </summary>
    public interface I_NutrientComposition
    {
        /// <summary>
        /// 获取原料
        /// </summary>
        /// <param name="eNutrientComposition">元素详细</param>
        /// <returns>返回原料对应元素列表</returns>
        List<E_RawElementInfo> GetRawElementList(E_NutrientComposition eNutrientComposition);

        /// <summary>
        /// 根据原料ID 获取对应的元素值
        /// </summary>
        /// <param name="eNutrientCompostion">查询实体</param>
        /// <returns>返回对应的所有元素</returns>
        List<E_NutrientComposition> GetElementList(E_NutrientComposition eNutrientCompostion);

        /// <summary>
        /// 根据原料ID 删除对应的元素
        /// </summary>
        /// <param name="eNutrientCompostion"></param>
        /// <returns>返回受影响行数</returns>
        bool RemoveByRawID(E_NutrientComposition eNutrientCompostion);

        /// <summary>
        /// 添加元素内容
        /// </summary>
        /// <param name="eNutrientCompostion">要添加的元素值</param>
        /// <returns>返回受影响行数</returns>
        int Add(E_NutrientComposition eNutrientCompostion);
    }
}
